package com.ethink.warehouse.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ethink.warehouse.api.request.*;
import com.ethink.warehouse.api.response.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 物流跟进申请表 Facade接口
 *
 * @author default
 * @date 2022-12-15
 */
@FeignClient(name = "ethink-warehouse-service", path = "warehouse-service/facade/v1/logisticsTraceApplyOrder", contextId = "logisticsTraceApplyOrderFacade")
public interface LogisticsTraceApplyOrderFacade {

    @PostMapping("/queryLogisticsTraceApplyOrder")
    @ResponseBody
    Page<LogisticsTraceApplyOrderQueryResponse> queryLogisticsTraceApplyOrder(@RequestBody LogisticsTraceApplyOrderQueryRequest request);

    @PostMapping("/listLogisticsTraceApplyOrder")
    @ResponseBody
    List<LogisticsTraceApplyOrderQueryResponse> listLogisticsTraceApplyOrder(@RequestBody LogisticsTraceApplyOrderListRequest request);

    @PostMapping("/getLogisticsTraceApplyOrderById")
    @ResponseBody
    LogisticsTraceApplyOrderGetDetailResponse getLogisticsTraceApplyOrderById(@RequestParam("logisticsTraceApplyOrderId") Long logisticsTraceApplyOrderId);

    @PostMapping("/addLogisticsTraceApplyOrder")
    @ResponseBody
    LogisticsTraceApplyAddResponse addLogisticsTraceApplyOrder(@RequestBody LogisticsTraceApplyAddRequest addRequest);

    @PostMapping("/updateLogisticsTraceApplyOrder")
    @ResponseBody
    LogisticsTraceApplyAddResponse updateLogisticsTraceApplyOrder(@RequestBody LogisticsTraceApplyUpdateRequest updateRequest);

    @PostMapping("/listLogisticsTraceApplyDetailOrder")
    @ResponseBody
    List<LogisticsTraceApplyDetailOrderGetDetailResponse> listLogisticsTraceApplyDetailOrder(@RequestBody LogisticsTraceApplyDetailListRequest request);

    @PostMapping("/listLogisticsTraceOrderNoOrderDetail")
    @ResponseBody
    List<LogisticsTraceOrderNoOrderDetailResponse> listLogisticsTraceOrderNoOrderDetail(@RequestBody LogisticsTraceOrderTypeOrderListRequest request);

    @PostMapping("/deleteLogisticsTraceApply")
    @ResponseBody
    void deleteLogisticsTraceApply(@RequestBody LogisticsTraceApplyDeleteRequest request);

    @PostMapping("/queryLogisticsTraceApplyTraceing")
    @ResponseBody
    List<String> queryLogisticsTraceApplyTraceing(@RequestBody LogisticsTraceApplyTraceingQueryRequest request);

}